package com.job.ming.zuoye0705;

/**
 * @author Yangmingyu
 * @version 1.0
 * @since 2022-07-06 14:19:27
 */
public class Baiqianbaiji {
    public static void main(String[] args) {
        int q=100,num=100;
        for (int s1=0;s1<=33;s1++){
            for (int s2=0;s2<=50;s2++){
                int s3=100-s1-s2;
                if (3*s1+5*s2+s3/3==q&&s3%3==0){
                    System.out.println("公鸡"+s1+"母鸡"+s2+"鸡仔"+s3);
                }
            }
        }
    }
}